import http from "@/utils/http.js"

const url = {
    // 上传文件
    fileInfoUpload: "/lab/fileInfo/upload",
    // 文件详情
    fileInfoGetById: "/lab/fileInfo/getById/",
}

export default {
    url: url,
    // 上传文件
    fileInfoUpload(params) {
        return http.post(url.fileInfoUpload, params, 'formData')
    },
    // 文件详情
    fileInfoGetById(id) {
        return http.post(url.fileInfoGetById + id)
    },
}